package com.sinochem.iot.rule.mapper;

import com.sinochem.iot.rule.model.TriggerRuleStore;
import com.sinochem.iot.rule.model.TriggerRuleStoreExample;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface TriggerRuleStoreMapper {
    /**
     *
     * @mbggenerated
     */
    int countByExample(TriggerRuleStoreExample example);

    /**
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *删除触发存储通过规则id
     * @param ruleId
     * @return
     */
    int deleteByRuleId(Integer ruleId);
    /**
     *
     * @mbggenerated
     */
    int insert(TriggerRuleStore record);

    /**
     *
     * @mbggenerated
     */
    int insertSelective(TriggerRuleStore record);

    /**
     *
     * @mbggenerated
     */
    List<TriggerRuleStore> selectByExample(TriggerRuleStoreExample example);

    /**
     *
     * @mbggenerated
     */
    TriggerRuleStore selectByPrimaryKey(Integer id);

    /**
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(TriggerRuleStore record);

    /**
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(TriggerRuleStore record);
}